<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>用户注册</title>
<style>
/* 基础样式 */
body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* 注册表单容器 */
.register-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 600px;
}

/* 表格样式 */
.register-form table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 15px;
}

.register-form td {
    padding: 8px;
    vertical-align: middle;
}

/* 输入框样式 */
.register-form input[type="text"],
.register-form input[type="password"],
.register-form input[type="email"],
.register-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.register-form input[type="radio"] {
    margin-right: 5px;
}

/* 必填项星号 */
.register-form font[color="red"] {
    color: #e74c3c;
    margin-left: 5px;
}

/* 按钮样式 */
.register-form input[type="submit"],
.register-form input[type="reset"] {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin: 0 10px;
    transition: background-color 0.3s;
}

.register-form input[type="submit"]:hover {
    background-color: #2980b9;
}

.register-form input[type="reset"] {
    background-color: #95a5a6;
}

.register-form input[type="reset"]:hover {
    background-color: #7f8c8d;
}

/* 标签样式 */
.register-form td[align="center"] {
    font-weight: bold;
    color: #333;
    white-space: nowrap;
    padding-right: 10px;
}

/* 响应式调整 */
@media (max-width: 600px) {
    .register-form {
        padding: 15px;
    }
    
    .register-form table {
        border-spacing: 0 10px;
    }
    
    .register-form input[type="submit"],
    .register-form input[type="reset"] {
        width: 100%;
        margin: 5px 0;
    }
}
</style>
</head>
<body>
<div class="register-form">
	<form method="post" action="{:Url('user/index/registerCheck')}">
		<table>
		<tr>
			<td width="100px" align="center">用户名：</td>
			<td height="30px">
			<input name="uname" type="text" id="uname" size="40" >
		</tr>	  
		<tr>
			<td height="30" align="center">密码：</td>
			<td><input name="upwd"  size="40" id="upwd" type="password" required="true" minlength="3" />
		</tr>
		<tr>
			<td height="30" align="center">重复密码：</td>
			<td><input name="upwd1"  size="40" id="upwd1" type="password" required="true" minlength="3" />
		</tr><tr>
			<td height="30" align="center">性别：</td>
			<td>
			<input type="radio" id="usex1" name="usex" value="男" checked />男
			<input type="radio" id="usex2" name="usex" value="女" />女
			</td>
		</tr><tr>
			<td height="30" align="center">爱好：</td>
			<td><input name="uhobby" type="text"  size="40" id="uhobby"/></td>
		</tr><tr>
			<td height="30" align="center">省份：</td>
			<td>
			<select id="uprovince" name="uprovince" required="true">
		<option value="">请选择</option>
		<option value="浙江">浙江</option>
		<option value="上海">上海</option>
		<option value="江苏">江苏</option>
		</select>	</td></tr><tr>
			<td height="30" align="center">Email：</td>
			<td><input name="uemail" type="text"  size="40" id="uemail" email="true" /></td>
		</tr><tr>
				<td height="40" colspan="2" align="center">
		<input name="Submit" type="submit" value="立即注册" >
		<input type="reset" name="Submit2" value="重置">
		</td> </tr>
		</table>
		<div class="back-button-container">
            已有账号或是游客模式访问：<a href="{:Url('user/index/index')}" class="back-button">返回首页</a>
        </div>
	</form>
</div>
</body>
</html>

